// froala-editor
import Vue from 'vue';
import VueFroala from 'vue-froala-wysiwyg';
// 引入 Froala Editor js file.
require('froala-editor/js/plugins.pkgd.min.js');
// 引入 Froala Editor css files.
require('froala-editor/js/third_party/embedly.min');
require('froala-editor/js/third_party/font_awesome.min');
require('froala-editor/js/third_party/spell_checker.min');
require('froala-editor/js/third_party/image_tui.min');
require('froala-editor/css/froala_editor.pkgd.min.css');
Vue.use(VueFroala);

(function () {
    var echat = document.createElement('script');
    echat.type = 'text/javascript';
    echat.async = true;
    echat.id = 'echatmodulejs';
    echat.setAttribute('charset', 'UTF-8');
    echat.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + '//at.alicdn.com/t/font_2351922_bt2ujmpz2cp.js';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(echat, s);
  })();
  